class BasicStationModel {
  int? id;
  int? substationId;
  int? companyId;
  String? name;
  String? number;
  String? longitude;
  String? latitude;
  String? thumbnail;
  String? intro;
  String? address;
  String? linkman;
  String? linkphone;
  String? linkemail;
  int? isHeatingSource;
  int? status;
  num? listOrder;
  int? createTime;
  int? updateTime;
  int? deleteTime;
  String? substationName;
  String? typeName;
  String? companyName;
  int? estateTotal;
  bool? showMap;

  BasicStationModel({
    this.id,
    this.substationId,
    this.companyId,
    this.name,
    this.number,
    this.longitude,
    this.latitude,
    this.thumbnail,
    this.intro,
    this.address,
    this.linkman,
    this.linkphone,
    this.linkemail,
    this.isHeatingSource,
    this.status,
    this.listOrder,
    this.createTime,
    this.updateTime,
    this.deleteTime,
    this.substationName,
    this.typeName,
    this.companyName,
    this.estateTotal,
    this.showMap,
  });

  BasicStationModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    substationId = json['substation_id'];
    companyId = json['company_id'];
    name = json['name'];
    number = json['number'];
    longitude = json['longitude'];
    latitude = json['latitude'];
    thumbnail = json['thumbnail'];
    intro = json['intro'];
    address = json['address'];
    linkman = json['linkman'];
    linkphone = json['linkphone'];
    linkemail = json['linkemail'];
    isHeatingSource = json['is_heating_source'];
    status = json['status'];
    listOrder = json['list_order'];
    createTime = json['create_time'];
    updateTime = json['update_time'];
    deleteTime = json['delete_time'];
    substationName = json['substation_name'];
    typeName = json['type_name'];
    companyName = json['company_name'];
    estateTotal = json['estate_total'];
    showMap = json['show_map'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    data['id'] = id;
    data['substation_id'] = substationId;
    data['company_id'] = companyId;
    data['name'] = name;
    data['number'] = number;
    data['longitude'] = longitude;
    data['latitude'] = latitude;
    data['thumbnail'] = thumbnail;
    data['intro'] = intro;
    data['address'] = address;
    data['linkman'] = linkman;
    data['linkphone'] = linkphone;
    data['linkemail'] = linkemail;
    data['is_heating_source'] = isHeatingSource;
    data['status'] = status;
    data['list_order'] = listOrder;
    data['create_time'] = createTime;
    data['update_time'] = updateTime;
    data['delete_time'] = deleteTime;
    data['substation_name'] = substationName;
    data['type_name'] = typeName;
    data['company_name'] = companyName;
    data['estate_total'] = estateTotal;
    data['show_map'] = showMap;
    return data;
  }
}
